
addEventListener( "message", function( event ){
	var start = new Date();
	
	while( new Date() - start < event.data ){}
	postMessage( "complete" );
	
}, true );
